home *** CD-ROM | disk | FTP | other *** search
/ Amiga Collections: Topik / Topik - Disk 14 - Useful Commands (19xx)(Topik Public Domain)(PD)[WB].zip / Topik - Disk 14 - Useful Commands (19xx)(Topik Public Domain)(PD)[WB].adf / ExtractFont / SMALL.c < prev    next >
C/C++ Source or Header  |  1989-08-07  |  3KB  |  93 lines

  1. #include <graphics/text.h>
  2.  
  3. static char fontname[] = "small.font";
  4.  
  5. static UWORD CharData[] = {
  6.     0xaa9d,0x5264,0x0017,0x3f38,0x7f77,0xdce0,0x2264,0xef3b,
  7.     0xdffb,0xb7e3,0xde23,0x3779,0xde7f,0xef7b,0xdeff,0xcd0e,
  8.     0xafe8,0x6a9e,0x801d,0xf1ef,0x78c0,0xf7b9,0x5d1b,0xbdef,
  9.     0x78c6,0x36c3,0xf637,0xbdef,0x7bc3,0x6f7b,0xdecd,0x468e,
  10.     0x829c,0x9495,0xce2f,0xb71b,0x7ef1,0x9cf0,0x80ab,0xbf63,
  11.     0x7ef6,0xfec3,0xe63f,0xfdef,0x7b73,0x6f7f,0x73d9,0x240a,
  12.     0x07cb,0x289e,0x904d,0xbc6f,0xe3db,0x3639,0x5d09,0xfdef,
  13.     0x78c6,0xf6db,0xf637,0xbdfb,0xde1b,0x6d5b,0xd9b1,0x140e,
  14.     0x829d,0x5464,0x2147,0x3fb8,0x7e76,0x1ce2,0x2225,0xbf3b,
  15.     0xdfc3,0xb7ee,0xdff7,0x9761,0x7bf3,0x3891,0xdf3f,0x9c7e,
  16. };
  17.  
  18. static ULONG CharLoc[] = {
  19.     0x00000000,0x00000002,0x00020003,0x00050005,
  20.     0x000a0005,0x000f0003,0x00120004,0x00160002,
  21.     0x00180002,0x001a0002,0x001c0003,0x001f0003,
  22.     0x00220002,0x00240003,0x00270002,0x00290003,
  23.     0x002c0005,0x00310003,0x00340005,0x00390005,
  24.     0x003e0005,0x00430005,0x00480005,0x004d0005,
  25.     0x00520005,0x00570005,0x005c0002,0x005e0002,
  26.     0x00600003,0x00630003,0x00660003,0x00690003,
  27.     0x006c0003,0x006f0005,0x00740005,0x00790005,
  28.     0x007e0005,0x00830005,0x00880005,0x008d0005,
  29.     0x00920005,0x00970004,0x009b0005,0x00a00005,
  30.     0x00a50005,0x00aa0005,0x00af0005,0x00b40005,
  31.     0x00b90005,0x00be0005,0x00c30005,0x00c80005,
  32.     0x00cd0004,0x00d10005,0x00d60005,0x00db0005,
  33.     0x00e00005,0x00e50005,0x00ea0005,0x00ef0002,
  34.     0x00f10003,0x00f40002,0x00f60003,0x00f90003,
  35. };
  36.  
  37. static UWORD CharSpace[] = {
  38.     0x0004,0x0002,0x0004,0x0006,0x0006,0x0004,0x0005,0x0002,
  39.     0x0003,0x0003,0x0004,0x0004,0x0003,0x0004,0x0002,0x0004,
  40.     0x0006,0x0006,0x0006,0x0006,0x0006,0x0006,0x0006,0x0006,
  41.     0x0006,0x0006,0x0002,0x0003,0x0004,0x0004,0x0004,0x0004,
  42.     0x0004,0x0006,0x0006,0x0006,0x0006,0x0006,0x0006,0x0006,
  43.     0x0006,0x0005,0x0006,0x0006,0x0006,0x0006,0x0006,0x0006,
  44.     0x0006,0x0006,0x0006,0x0006,0x0005,0x0006,0x0006,0x0006,
  45.     0x0006,0x0006,0x0006,0x0003,0x0004,0x0003,0x0004,0x0004,
  46. };
  47.  
  48. static UWORD CharKern[] = {
  49.     0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
  50.     0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
  51.     0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
  52.     0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
  53.     0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
  54.     0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
  55.     0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
  56.     0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
  57. };
  58.  
  59. struct TextFont SmallFont = {
  60.     {        /* Message    */
  61.         {        /* Node    */
  62.             NULL,        /* ln_Succ    */
  63.             NULL,        /* ln_Pred    */
  64.             NT_FONT,    /* ln_Type    */
  65.             0,        /* ln_Pri    */
  66.             fontname,    /* ln_Name    */
  67.         },
  68.         NULL,            /* mn_ReplyPort    */
  69.         sizeof (SmallFont) +
  70.         sizeof (fontname) +
  71.         sizeof (CharData) +
  72.         sizeof (CharLoc) + 
  73.         sizeof (CharSpace) +
  74.         sizeof (CharKern) + 
  75.         0,            /* mn_Length    */
  76.     },
  77.     5,        /* tf_YSize    */
  78.     0,        /* tf_Style    */
  79.     98,        /* tf_Flags    */
  80.     6,        /* tf_XSize    */
  81.     5,        /* tf_Baseline    */
  82.     1,        /* tf_BoldSmear    */
  83.     0,        /* tf_Accessors    */
  84.     32,        /* tf_LoChar    */
  85.     95,        /* tf_HiChar    */
  86.     (APTR)&CharData,/* tf_CharData    */
  87.     32,        /* tf_Modulo    */
  88.     (APTR)&CharLoc,    /* tf_CharLoc    */
  89.     (APTR)&CharSpace,/*tf_CharSpace    */
  90.     (APTR)&CharKern,/* tf_CharKern    */
  91. };
  92.  
  93.